package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("安全分析单元")
public class RiskAnalysisUnit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "对象ID")
    private Long objectId;

    @ApiModelProperty(value = "单元名称")
    private String name;

    @ApiModelProperty(value = "详细位置")
    private String detailLocation;

    @ApiModelProperty(value = "状态，1-启用，0-禁用")
    private Boolean status;

    @ApiModelProperty(value = "单元区域经纬度")
    private String lonLat;

    @ApiModelProperty(value = "是否扫码排查")
    private Boolean scan;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "负责人ID")
    private Long userId;

    @ApiModelProperty(value = "负责人默认IMEI号")
    private String imei;

    @TableField(exist = false)
    private String deptName;
    @TableField(exist = false)
    private String userName;

}
